package com.qupai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qupai.dto.ShoppingCartDTO;
import com.qupai.entity.ShoppingCart;

import java.util.List;

public interface ShoppingCartService extends IService<ShoppingCart> {
    /**
     * 添加购物车
     */
    void addShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     */
    List<ShoppingCart> showShoppingCart();

    /**
     *  清空购物车
     */
    void cleanShoppingCart();

    /**
     * 删除购物车中一个商品
     */
    void subShoppingCart(ShoppingCartDTO shoppingCartDTO);


    /**
     * 批量删除购物车中的奖品
     */
    void deleteBatch(List<Long> shoppingCartIds);
}
